<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/axios.min.js"></script>
</head>
<body>
    <script>
         axios.get("http://localhost:3000/user").then(res=>{

            //data是一个固定的
             console.log(res.data);
         })

        //   两种方式
         axios({
             methods:"get",
             url:"http://localhost:3000/login"
         }).then(res=>{
             console.log(res.data);
         })
        axios({
            methods:"get",
            url:"http://localhost:3000/cook"
        }).then(res=>{
            console.log(res);
        })

        // console.dir( axios);
    </script>
</body>
</html>